package com.oj.mapper;

import com.github.pagehelper.Page;
import com.oj.entity.Message;
import com.oj.entity.Packet;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PacketMapper {
    Integer count();
    Packet query(Integer id);
    Packet queryByHex(String hex);
    boolean insert(Packet packet);
    boolean update(Packet packet);
    boolean delete(Integer id);
    Page<Packet> findByPaging();
    List<Packet> search(Map param);
}